import { ElMessageBox, ElNotification } from "element-plus";

// 消息提示
export function toast(message, type = "success") {
  ElNotification({
    message,
    type,
    duration: 2000,
  });
}
export const open = (text, type = "success") => {
  return ElMessageBox.confirm(text, "", {
    confirmButtonText: "确认",
    cancelButtonText: "取消",
    type,
  });
};
